package com.ruoyi.asms.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 资产故障原因对象 asms_fault_asset_reason
 * 
 * @author yfkj
 * @date 2021-10-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AsmsFaultAssetReason extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 资产故障原因主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long faultAssetReasonId;
    /** 资产类型id */
    @Excel(name = "资产类型id")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产类型id")
    private Long assetTypeId;
    /** 故障原因名称 */
    @Excel(name = "故障原因名称")
    @TableField(exist = true)
    @ApiModelProperty(value =  "故障原因名称")
    private String faultReason;
    /** 该故障类型的解决办法(图文) */
    @Excel(name = "该故障类型的解决办法(图文)")
    @TableField(exist = true)
    @ApiModelProperty(value =  "该故障类型的解决办法(图文)")
    private String solution;
    /** 排序 */
    @Excel(name = "排序")
    @TableField(exist = true)
    @ApiModelProperty(value =  "排序")
    private Integer sortId;
    /** 状态(-1无效，0申请中，1有效) */
    @Excel(name = "状态(-1无效，0申请中，1有效)")
    @TableField(exist = true)
    @ApiModelProperty(value =  "状态(-1无效，0申请中，1有效)")
    private Integer status;
    public static final String FAULT_ASSET_REASON_ID="fault_asset_reason_id";
    public static final String ASSET_TYPE_ID="asset_type_id";
    public static final String FAULT_REASON="fault_reason";
    public static final String SOLUTION="solution";
    public static final String SORT_ID="sort_id";
    public static final String STATUS="status";
    public static final String CREATE_BY="create_by";
    public static final String CREATE_TIME="create_time";
    public static final String UPDATE_BY="update_by";
    public static final String UPDATE_TIME="update_time";
    public static final String REMARK="remark";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("faultAssetReasonId", getFaultAssetReasonId())
            .append("assetTypeId", getAssetTypeId())
            .append("faultReason", getFaultReason())
            .append("solution", getSolution())
            .append("sortId", getSortId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
